# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=glacier-camera
pkgver=0.1.3
pkgrel=1
pkgdesc="The Glacier camera"
url="https://github.com/nemomobile-ux/glacier-camera"
# armhf blocked by qtquickcontrols-nemo
arch="all !armhf"
license="LGPL-2.0-or-later"
depends="
	nemo-qml-plugin-settings
	mapplauncherd
	qtquickcontrols-nemo
	"
makedepends="
	cmake
	libglacierapp-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qttools-dev
	samurai
	"
source="https://github.com/nemomobile-ux/glacier-camera/archive/$pkgver/glacier-camera-$pkgver.tar.gz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
8bdecf45a5b1f3e2e73515e647beb7e8ee8ef05f511657a1ddce34603fb2b2b6a90b2b69108645edf0577e400be6aaeb0e568388665df3c6f07cda7590a1ae82  glacier-camera-0.1.3.tar.gz
"
